package com.link2room.optimus.dto.result.base;

import com.link2room.common.annotation.L2RDatetimeString;
import com.link2room.common.dto.result.base.BaseDto;
import com.link2room.common.util.DateUtil;

import java.math.BigDecimal;
import java.util.Date;

/**
 * Created by sss on 2016/8/29.
 */
public class PriceStaticDayDto extends BaseDto {
    /**
     * 价格日期（传值）
     */
    @L2RDatetimeString(source = "priceDate")
    private String priceDatetime;
    /**
     * 价格日期（转化）
     */
    private Date priceDate;
    /**
     * 价格
     */
    private BigDecimal price;
    /**
     * 房型代码
     */
    private String rmtype;
    /**
     * 基价代码
     */
    private String priceCode;

    public String getPriceDatetime() {
        return priceDatetime;
    }

    public void setPriceDatetime(String priceDatetime) {
        this.priceDatetime = priceDatetime;
        setPriceDate(DateUtil.parseDateNewFormat(priceDatetime));
    }

    public Date getPriceDate() {
        return priceDate;
    }

    public void setPriceDate(Date priceDate) {
        this.priceDate = priceDate;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public String getRmtype() {
        return rmtype;
    }

    public void setRmtype(String rmtype) {
        this.rmtype = rmtype;
    }

    public String getPriceCode() {
        return priceCode;
    }

    public void setPriceCode(String priceCode) {
        this.priceCode = priceCode;
    }
}
